﻿namespace MvcXRepairCustomer.Interfaces
{
    using MvcXRepair.ViewModel;
    using XRepair.Models;

    public interface IUserService
    {
        bool AddNewUser(User model);

        User GetUserInfoByCredentials(LoginViewModel model);

        bool ActivateUserAccount(string actionvationCode);

        bool IsUsernameOccupied(string username);

        bool IsEmailOccupied(string email);

        bool UpdateUserPasswordByEmailAddress(string email);

        bool ChangeUserPasswordByEmailAddress(string email, string newPassword);
    }
}
